package me.lwn.auth.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PageRequest {

    public static final String ASC = "asc";
    public static final String DESC = "desc";

    public static final int DEFAULT_PAGE_SIZE = 20;

    private long page = 1L;
    private long size = DEFAULT_PAGE_SIZE;

    private List<SearchFilter> searchFilters = new ArrayList<>();
    private Map<String, String> sortMap = new HashMap<>();

    public long getPage() {
        return page;
    }

    public void setPage(long page) {
        this.page = page;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public List<SearchFilter> getSearchFilters() {
        return searchFilters;
    }

    public void setSearchFilters(List<SearchFilter> searchFilters) {
        this.searchFilters = searchFilters;
    }

    public Map<String, String> getSortMap() {
        return sortMap;
    }

    public void setSortMap(Map<String, String> sortMap) {
        this.sortMap = sortMap;
    }
}
